package dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;


@Data
@Builder
@Schema(name = "ManagerLoginDTO", title = "管理员登录的数据模型", description = "管理员登录时传递的数据模型")
public class ManagerLoginDTO implements Serializable {

    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "胡歌")
    private String username;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin")
    private String password;


    @Schema(description = "24小时免登录，true为免登录，false为token正常过期时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean autologin;
}
